﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WMS_Api.Areas.RFSystem.Models
{
    /// <summary>
    /// 物料信息
    /// </summary>
    public class MaterialInfoModel
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Mat_Code { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Mat_Name { get; set; }

        /// <summary>
        /// WMS 物料二级内部编码
        /// </summary>
        public long Sec_Mat_ID { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        public string TS01 { get; set; }

        /// <summary>
        /// 图号
        /// </summary>
        public string S05 { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string S01 { get; set; }

    }

    /// <summary>
    /// 未完成的入库单
    /// </summary>
    public class StorageInfoModel
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public string StockNo { get; set; }
    }

    /// <summary>
    /// 托盘物料信息
    /// </summary>
    public class Tray_MaterialInfoModel
    {
        /// <summary>
        /// 入库单据
        /// </summary>
        public string StockNo { get; set; }

        /// <summary>
        /// 库存表PID
        /// </summary>
        public string PID { get; set; }

        /// <summary>
        /// 托盘码
        /// </summary>
        public string Tray_ID { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string Mat_Code { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string Mat_Name { get; set; }

        /// <summary>
        /// 物料入库数量
        /// </summary>
        public decimal Mat_Num { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public decimal Act_Num { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string S01 { get; set; }

        /// <summary>
        /// 图号
        /// </summary>
        public string S05 { get; set; }

        public string TM01 { get; set; }

        public string TM03 { get; set; }

        public string S02 { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        public string TS01 { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit_Base { get; set; }

        /// <summary>
        /// WMS 物料二级编码
        /// </summary>
        public long Sec_Mat_ID { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class Tray_AddStorageMaterialModel
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Mat_Code { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public decimal SurplusNum { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        public string TS01 { get; set; }

        public string TM01 { get; set; }

        public string TM03 { get; set; }

        public string S02 { get; set; }

        /// <summary>
        /// WMS 物料二级编码
        /// </summary>
        public long Sec_Mat_ID { get; set; }

        /// <summary>
        /// 组盘数量
        /// </summary>
        public decimal PackageNum { get; set; }
    }

    /// <summary>
    /// 组盘参数
    /// </summary>
    public class SetPackageModel
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public string StrStockNo { get; set; }

        /// <summary>
        /// 托盘编号
        /// </summary>
        public string StrTrayId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料二级编码
        /// </summary>
        public long SecMatId { get; set; }

        /// <summary>
        /// 托盘尺寸
        /// </summary>
        public int Size { get; set; }

        /// <summary>
        /// 物料数量
        /// </summary>
        public decimal MatNum { get; set; }

        /// <summary>
        /// 任务号
        /// </summary>
        public long TaskId { get; set; }
    }

    /// <summary>
    /// 单据的物料信息
    /// </summary>
    public class AddStorageMetarilInfoModel
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string Mat_Code { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        public string TS01 { get; set; }

        /// <summary>
        /// 物料剩余数量
        /// </summary>
        public decimal ReNum { get; set; }
    }
}